# print('hello chen')

# print('hello', 'pyhton', '!')


# name = 'chen'
# print(name)

# f = 10.15
# print(f)
# print(type(f))

# print(2**3)

# str = "my name is chen lang"
# str1 = str[::-1]

# print(str)
# print(str1)

# set1 = str.split()
# print(set1)
# str2 = ' + '.join(set1)
# print(str2)



# 列表操作 list  可修改
# names = ["张三", "李四", "王五"]
# print(type(names))
# print(names[1])
# names[1] = "xx"
# print(names)

# # 追加
# names.append("李六")
# print(names)

# list1 = [['zhangsan', '18', 80], ['lisi', 18, 20], ['wangwu', 123, 123]]
# print(list1)

names1 = ["张三", "李四", "王五"]
print(names1)
names1.append("李六")
print(names1)

names1.append(["123", "456"])
print(names1)

names1.extend({"haha", "hehe"})
print(names1)

# names1.extend("haha", "hehe")
# print(names1)


# print(names1)
# #del names1    # 直接删除names1的所有， 包括自己的变量名
# # del names1[1]
# print(names1)

# print(names1.sort())
# names1.clear()
# names1 = ["abc", "qweqwe", "bqwe"]
# names1.sort() # 排序
# print(names1)
# names1.reverse()
# print(names1)


# print("张三" in names1)


dict1 = {"name": "张三", "sex": "boy", "age":18}
print(dict1)

print(dict1.get("name1"))
# print(dict1["name1"])   # 没有直接报错

# print(dict1.keys())
tmp = dict1.keys()
print(tmp)
print(type(tmp))

print(dict1.values())

print(dict1.items())